package com.cmict.data.form.api.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.cmict.data.form.api.entity.SysDownload;
import com.cmict.data.form.api.entity.dataobject.SysFormDO;
import com.cmict.data.form.api.entity.vo.SysDownloadVo;
import com.cmict.data.form.api.entity.vo.SysFormReqVO;
import com.cmict.data.framework.common.pojo.PageResult;
import com.cmict.data.framework.mybatis.core.mapper.BaseMapperX;
import com.cmict.data.framework.mybatis.core.query.QueryWrapperX;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 类别表
 *
 * @author
 * @date 2022-03-21 11:37:08
 */
@Mapper
public interface SysDownloadMapper extends BaseMapperX<SysDownload> {

    default PageResult<SysDownload> selectPage(SysDownloadVo reqVO) {
        return selectPage(reqVO, new QueryWrapperX<SysDownload>()
                .likeIfPresent("table_name", reqVO.getTableName())
                .orderByDesc("create_time"));
    }
}
